package com.feicheng.lanniao.service;

import com.feicheng.lanniao.entity.HouseLease;
import com.feicheng.lanniao.entity.HouseLeaseClientVo;
import com.feicheng.lanniao.result.ResultInfo;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * VIEW 服务类
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-07
 */
public interface IHouseLeaseClientVoService extends IService<HouseLeaseClientVo> {

	ResultInfo findDetails(Integer leaseId);
	/**
	 * @author dongmengxu
	 * @param leasePrice 租房价格
	 * @param roomCount 户型
	 * @param area 面积
	 * @param provienceId 省id
	 * @param cityId 市ID
	 * @param reignId 区Id
	 * @param imgUrl 封面图片
	 * @param clientId 用户Id
	 * @param pianqu 片区
	 * @param xiaoqu 小区
	 * @param zhuangxiu 装修
	 * @param chaoxiang 朝向
	 * @param dianti 电梯
	 * @param louceng 楼层
	 * @param tel 发布电话
	 * @param wxNumber 微信号
	 * @param niandai 年代
	 * @return
	 */
	ResultInfo addHouseLeaseClient(
			Integer leasePrice,   
			Integer roomCount,
			Integer area, 
			Integer provienceId, 
			Integer cityId, 
			Integer reignId, 
			String imgUrl,
			Integer clientId,
			String pianqu,
			String xiaoqu,
			String zhuangxiu,
			String chaoxiang,
			Integer dianti,
			String louceng,
			String tel,
			String wxNumber,
			String niandai
	);

	ResultInfo deleteHouseLeaseClient(HouseLease houseLease);

	ResultInfo getList(String des,Integer provienceId,
			   Integer cityId, Integer reignId,
			   Integer clientId, Integer leaseId,
			   Integer houseAreaId, Integer leasePriceId,
			   String tel,
			   String wxNumber,
			   String louceng,
			   String xiaoqu,
			   String pianqu,
			   String chaoxiang,
			   String zhuangxiu,
			   Integer dianti,
			   String niandai,
			   Integer roomCount,
			   Integer currentPage,
			   Integer pageSize);
	ResultInfo getList(String des,Integer provienceId,
			   Integer cityId, Integer reignId,
			   Integer clientId, Integer leaseId,
			   Integer houseAreaId, Integer leasePriceId,
			   String tel,
			   String wxNumber,
			   String louceng,
			   String xiaoqu,
			   String pianqu,
			   String chaoxiang,
			   String zhuangxiu,
			   Integer dianti,
			   String niandai,
			   Integer roomCount,
			   Integer currentPage,
			   Integer pageSize,
			   String sort,
			   Boolean dec);

	ResultInfo updateHouseLease(HouseLeaseClientVo houseLeaseClientVo);

    /**
     * @Author tianchunlei
     * @Description //以前的updateHouseLease不维护了，新增一个修改出租房屋信息的方法
     * @Date 2021/10/11 11:50
	 * House
     * @Param provienceId 省编号
	 * @Param cityId 市编号
	 * @Param reignId 区编号
	 * @Param pianqu 片区  String
	 * @Param xiaoqu 小区 String
	 * @Param roomCount 几室 roomCount
	 * @Param roomCount 朝向 String
	 * @Param dianti 电梯  Integer
	 * @Param zhuangxiu 装修    String
	 * @Param niandai 建筑年代     String
	 * @Param area 面积 Integer
	 * @Param imgUrl 图片
	 *
	 * ------------------
	 * HouseLeaseClientVo
	 *@ Param leaseId 租赁id 主键
	 *@ Param leasePrice 租赁价格
	 *@ Param louceng 楼层 String
	 *@ Param tel String 电话
	 *@ Param wxNumber String 微信
     * @return
     */
	ResultInfo updateHouseLeaseV2(Integer provienceId,
								  Integer cityId,
								  Integer reignId,
								  String pianqu,
								  String xiaoqu,
								  Integer roomCount,
								  String chaoxiang,
								  Integer dianti,
								  String zhuangxiu,
								  String niandai,
								  Integer area,
								  String imgUrl,
								  Integer leaseId,
								  Integer leasePrice,
								  String louceng,
								  String tel,
								  String wxNumber);
}
